package nowcoder;

public class ReOrderArray {
    public void reOrderArray(int [] array) {
        if (array==null||array.length==0){
            return;
        }
        int k =0;
        for (int i = 0; i < array.length; i++) {
            if (array[i]%2!=0){
                int j = i;
                int temp = array[i];
                while (j>k){
                    array[j]=array[j-1];
                    j--;
                }
                array[k++] = temp;

            }
        }
    }


}
